package com.derbysoft.dswitch.adapter.ihg.common.repository.impl;

import com.derbysoft.dswitch.adapter.ihg.common.domain.ChannelAuthorization;
import com.derbysoft.dswitch.adapter.ihg.common.repository.ChannelAuthorizationRepository;
import org.springframework.stereotype.Service;

@Service("channelAuthorizationService")
public class ChannelAuthorizationRepositoryImpl extends CommonService<ChannelAuthorization>
        implements ChannelAuthorizationRepository {

    private static final String DERBY_CHANNEL_CODE = "derbyChannelCode";

    @Override
    public ChannelAuthorization loadByDerbyChannelCode(String derbyChannelCode) {
        return load(DERBY_CHANNEL_CODE, derbyChannelCode.toUpperCase());
    }
}
